<?php
namespace app\common\model;
use think\Model;
use think\Db;
use app\common\model\Exam;
use app\common\model\Account;
/**
 * 学科类目
 */
class Homework extends Model
{
    
    protected $append = [
        'account',
        'exam'
    ];

    public function getAccountAttr($value,$data){
        return Account::get($data['account_id']);
    }

    public function getExamAttr($value,$data){
       return Exam::get($data['exam_id']);
    }
}